<template>
	<page-body>
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center kbDetails_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub kbDetails_fd0_0'>
					<view class='flex flex-wrap align-center kbDetails_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  kbDetails_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<text class='kbDetails_fd0_0_c1'>口碑详情</text>
					<view class='flex flex-wrap align-center kbDetails_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout kbDetails_fd1_0">
				<view class='flex flex-direction flex-wrap align-stretch flex-sub kbDetails_fd1_0'>
					<view class='flex flex-wrap align-center kbDetails_fd1_0_c0'>
						<image class='kbDetails_fd1_0_c0_c0' mode="aspectFill" :src='kbData.avatar'></image>
						<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
							<text class='flex-sub kbDetails_fd1_0_c0_c1_c0'>{{kbData.nickname}}</text>
							<view class='flex flex-wrap align-center'>
								<template v-for="starNum in [1,2,3,4,5]">
									<image v-if="kbData.evaluate_star >= starNum" :key="starNum"
										class='kbDetails_star1fd1_0_c0_c1_c1' mode="aspectFit"
										:src='STATIC_URL+"105.png"'></image>
									<image v-else :key="starNum" class='kbDetails_star1fd1_0_c0_c1_c1' mode="aspectFit"
										:src='STATIC_URL+"104.png"'></image>
								</template>
							</view>
						</view>
					</view>
					<text class='kbDetails_fd1_0_c1'>{{kbData.evaluation_description}}</text>
					<view class='flex flex-wrap align-center kbDetails_fd1_0_c2'>
						<template v-for='(item,key0) in kbData.appraise_img'>
							<view class='flex flex-wrap align-center kbDetails_fd1_0_c2_c0' :key='key0'>
								<image class='kbDetails_fd1_0_c2_c0_c0' mode="aspectFill" :src='item'
									@tap.stop="multiImagePreview(item,kbData.appraise_img,'')"></image>
							</view>
						</template>

					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"kbData": {
					"nickname": "",
					"mobile": "",
					"avatar": "",
					"evaluation_description": "",
					"appraise_img": [],
					"evaluate_star": ""
				},
				"pj_id": "",
				"kb_id": ""
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			let {
				pj_id,
				kb_id
			} = options
			if (pj_id !== undefined) this.pj_id = pj_id
			if (kb_id !== undefined) this.kb_id = kb_id
			this.getKbFunc()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取口碑详情
			async getKbFunc() {
				//请求方法
				//数据验证

				let datakbData = await this.$api.get(global.apiUrls.post666c061db360d, {
					pj_id: this.pj_id,
					kb_id: this.kb_id
				});

				if (datakbData.data.code != 1) {
					this.$message.info(datakbData.data.msg);
					return
				}
				let infokbData = datakbData.data;
				this.kbData = infokbData.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(255, 255, 255, 1);
		background-size: 100% auto;
	}

	.kbDetails_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.kbDetails_fd0_0_c1 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.kbDetails_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.kbDetails_fd0_0_c0 {
		width: 200rpx;
		height: 88rpx;
	}

	.kbDetails_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.kbDetails_fd1_0_c2_c0_c0 {
		width: 226rpx;
		height: 226rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.kbDetails_fd1_0_c2_c0 {
		margin: 0rpx 6rpx 24rpx 6rpx;
	}

	.kbDetails_fd1_0_c2 {
		margin: 24rpx 0rpx 0rpx 0rpx;
		padding: 0rpx 18rpx 0rpx 18rpx;
	}

	.kbDetails_fd1_0_c1 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 40rpx;
		margin: 24rpx 24rpx 0rpx 24rpx;
	}

	.kbDetails_star1fd1_0_c0_c1_c1 {
		height: 18rpx;
		margin: 0rpx 4rpx 0rpx 0rpx;
		width: 18rpx;
	}

	.kbDetails_star1fd1_0_c0_c1_c1 {
		width: 18rpx;
		height: 18rpx;
		margin: 0rpx 4rpx 0rpx 0rpx;
	}

	.kbDetails_fd1_0_c0_c1_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 40rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		margin: 0rpx 0rpx 8rpx 0rpx;
	}

	.kbDetails_fd1_0_c0_c0 {
		width: 56rpx;
		height: 56rpx;
		border-radius: 28rpx 28rpx 28rpx 28rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.kbDetails_fd1_0_c0 {
		margin: 32rpx 24rpx 0rpx 24rpx;
	}

	.kbDetails_fd1_0 {
		background: #fff;
		background-size: 100% auto !important;
	}
</style>